<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@include file="/WEB-INF/common/common.jsp" %>
<%@include file="/WEB-INF/common/header.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>物料详情</title>
</head>
<body>
<div class="container">
    <div class="row" style="height: 900px">
        <div class="col-md-8">
            <div class="text-center" style="line-height:35px ">
                <div class="col-md-3">上传院校：${requestScope.data.school}</div>
                <div class="col-md-3">上传时间：${requestScope.data.time}</div>
                <div class="col-md-3">下载量：${requestScope.data.click}</div>
                <div class="col-md-3"><a class="btn btn-success form-control"
                                         href="${ctx}/download?id=${data.id}">立即下载</a>
                </div>
            </div>
            <br><br><br>

            <div class="row">
                <c:forEach items="${requestScope.images}" var="image">
                    <div class="col-md-4">
                        <div style="height: 300px;width: 250px">
                            <img src="${ctx}/static/image/${image}" width="220">
                        </div>
                    </div>
                </c:forEach>
            </div>

            <div class="h2 row">文案：${requestScope.data.title}</div>
            <div></div>
        </div>
        <div class="col-md-4">
            <div>
                <form>
                    <div class="col-sm-6"><input type="text" name="title" class="form-control"></div>
                    <div class="col-sm-6"><input class="btn btn-success" type="submit" value="搜索"></div>
                </form>
            </div>
            <div>
                <div class="h1">优质物料推荐</div>
                <ul>
                    <c:forEach items="${requestScope.datas}" var="data">
                        <li>
                            <a href="${ctx}/showDetail?id=${data[1]}">${data[0]}</a>
                        </li>
                    </c:forEach>
                </ul>
            </div>

        </div>
    </div>
</div>
</body>
</html>
<%@include file="/WEB-INF/common/bottom.jsp" %>
